<?php 
	//**********判断用户名是否存在***********
    if(isset($_SESSION['uinfo']['username'])){//用户名是否存在
    	$username = $_SESSION['uinfo']['username'];
    }
?>
<div class="header-inner">
	<span class="logo">
		<a href=""><img src="./Public/Home/Images/logo/logo_e.png" alt=""></a>
	</span>
	<ul class="header-tool">
	<?php if (isset($username)): ?>
		<li id="Login">
			<span>Hi~</span>
			<a href=""><?php echo $username?></a>
			<a href="<?php echo U('Login/quit')?>">退出</a>
		</li>
	<?php else: ?>
		<li id="Login">
			<span>Hi~</span>
			<a href="" >[请登录]</a>
			<a href="<?php echo U('Reg/index')?>">[免费注册]</a>
		</li>
	<?php endif ?>
		<li class="tool-options">
			<span>
				<a href="">MY有货</a>
			</span>
			<i></i>
			<div class="tool-select">
				<a href="">我的收藏</a>
				<a href="">优惠券</a>
			</div>
		</li>
		<li>
			<a href="">订单中心</a>
		</li>
		<li>
			<a href="">帮助中心</a>
		</li>
		<li>
			<i class="logo-phone"></i>
			<a href="">400-8899-646</a>
		</li>
	</ul>
</div>